<template>
  <h1>属性绑定指令</h1>
  <input type="text" value="name">
  <!-- 属性绑定与简写 -->
  <input type="text" v-bind:value="name">
  <input type="text" :value="name">
  <hr>
  <a href="url">超链接</a><br>
  <a :href="url">超链接</a>
</template>

<script setup>
import {ref} from "vue";

const name = ref('星期六');
const url = ref('https://www.baidu.com');
url.value='https://jd.com';
</script>

<style scoped>

</style>